package com.baizhi.mapper;

import com.baizhi.entity.Section;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SectionMapper {
    void insertSection(Section section);
    void deleteById(Integer sectionId);
    void deleteSelect(@Param("ids")Integer[] ids);
    void updateById(Section section);
    List<Section> selectPage(@Param("sectionName") String sectionName,
                             @Param("offset") Integer offset,@Param("limit") Integer limit);
    Section selectById(Integer sectionId);
    Integer selectTotalRows(String sectionName);
}
